
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui">
<ui:composition>
	<div id="cse-search-form" style="width: 100%;">Loading</div>
	<script src="http://www.google.com/jsapi" type="text/javascript"></script>
	<script type="text/javascript">
		google.load('search', '1', {
			style : google.loader.themes.V2_DEFAULT
		});
		google
				.setOnLoadCallback(
						function() {
							var customSearchOptions = {};
							var orderByOptions = {};
							orderByOptions['keys'] = [ {
								label : 'Relevance',
								key : ''
							}, {
								label : 'Date',
								key : 'date'
							} ];
							customSearchOptions['enableOrderBy'] = true;
							customSearchOptions['orderByOptions'] = orderByOptions;
							var imageSearchOptions = {};
							imageSearchOptions['layout'] = google.search.ImageSearch.LAYOUT_POPUP;
							customSearchOptions['enableImageSearch'] = true;
							customSearchOptions['imageSearchOptions'] = imageSearchOptions;
							var customSearchControl = new google.search.CustomSearchControl(
									'000546666492082922751:y0hzrws4_tw',
									customSearchOptions);
							customSearchControl
									.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
							var options = new google.search.DrawOptions();
							options.setAutoComplete(true);
							customSearchControl
									.setAutoCompletionId('000546666492082922751:y0hzrws4_tw+qptype:1');
							options
									.enableSearchboxOnly("http://www.ezhuaren.com/searchresult.xhtml");
							customSearchControl
									.draw('cse-search-form', options);
						}, true);
	</script>

</ui:composition>
</html>
